package com.chenliang.sc.service.impl;

import com.chenliang.sc.mapper.CoreUserMapper;
import com.chenliang.sc.service.CoreUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @program: springcase
 * @description:
 * @author: 陈亮
 * @create: 2022-06-14 11:18
 */
@Service
public class CoreUserServiceImpl implements CoreUserService {

    @Autowired
    private CoreUserMapper coreUserMapper;

    @Transactional
    @Override
    public void update(String id, String age) {
        coreUserMapper.updateById(id, age);
        int a = 1 / 0;
    }
}
